import { axios } from '@/utils/request'

/**
 * 分页查询设备状态
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function page (parameter) {
    return axios({
        url: '/bizDeviceStatusAssess/page',
        method: 'get',
        params: parameter
    })
}

/**
 * 增加设备状态
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function add (parameter) {
    return axios({
        url: '/bizDeviceStatusAssess/add',
        method: 'post',
        data: parameter
    })
}

/**
 * 编辑设备状态
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function edit (parameter) {
    return axios({
        url: '/bizDeviceStatusAssess/edit',
        method: 'post',
        data: parameter
    })
}

/**
 * 查看详情设备状态
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function detail (parameter) {
    return axios({
        url: '/bizDeviceStatusAssess/detail',
        method: 'get',
        params: parameter
    })
}

/**
 * 删除设备状态
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function del (parameter) {
    return axios({
        url: '/bizDeviceStatusAssess/delete',
        method: 'post',
        data: parameter
    })
}

export function channelTypeList (parameter) {
  return axios({
    url: '/bizDeviceStatusAssess/list',
    method: 'get',
    params: parameter
  })
}

export function exportExcel (parameter) {
  return axios({
    url: '/bizDeviceStatusAssess/export',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}

export function exportCustom (parameter) {
  return axios({
    url: '/bizDeviceStatusAssess/exportCustom',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
